The profiling context of resource loading. More...
#include <kanzi/core.ui/resource/resource_profiling_load_context.hpp>
Classes | |
class | Sampler |
The context sampler. More... | |
Protected Member Functions | |
ResourceProfilingLoadContext (TimeStamp entryTimeStamp, ResourceProfilingDataSampleSharedPtr profiledResource) | |
Constructor. More... | |
virtual void | getAttributesOverride (ResourceProfilingAttributes &attributes) const KZ_OVERRIDE |
Gets the attributes of the context defined in the derived class. More... | |
virtual Duration | getDurationOverride () const KZ_OVERRIDE |
Gets the duration of the context. More... | |
Protected Member Functions inherited from kanzi::NamedResourceProfilingContext | |
NamedResourceProfilingContext (TimeStamp entryTimeStamp, KZ_RV_REF(string) name) | |
Constructor. More... | |
NamedResourceProfilingContext (TimeStamp entryTimeStamp, string_view name) | |
Constructor. More... | |
Protected Member Functions inherited from kanzi::ResourceProfilingContext | |
ResourceProfilingContext (TimeStamp entryTimeStamp) | |
Constructor. More... | |
Duration | getDependenciesDuration () const |
Gets the total duration of all dependency contexts. More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::ResourceProfilingContext | |
typedef chrono::nanoseconds | Duration |
The duration type. More... | |
typedef chrono::steady_clock::time_point | TimePoint |
The timepoint type. More... | |
typedef Duration | TimeStamp |
The timestamp. More... | |
typedef vector< ResourceProfilingContextSharedPtr > | ResourceProfilingContextContainer |
The resource profiling context container. More... | |
Public Member Functions inherited from kanzi::ResourceProfilingContext | |
virtual | ~ResourceProfilingContext () |
Destructor. More... | |
void | addDependencyContext (ResourceProfilingContextSharedPtr context) |
Adds a dependency context. More... | |
void | getAttributes (ResourceProfilingAttributes &attributes) const |
Retrieves the attributes of the context. More... | |
const ResourceProfilingContextContainer & | getDependencyContexts () const |
Gets dependency contexts container. More... | |
uint64_t | getID () const |
Gets the unique identifier of the context. More... | |
TimeStamp | getEntryTimeStamp () const |
Gets the entry timestamp of the context. More... | |
void | recordExitTimeStamp () |
Records exit timestamp on the context. More... | |
Static Public Member Functions inherited from kanzi::ResourceProfilingContext | |
static TimeStamp | getCurrentTimeStamp () |
Gets the current timestamp. More... | |
static TimePoint | getCurrentTimePoint () |
Gets the current timepoint. More... | |
Protected Attributes inherited from kanzi::NamedResourceProfilingContext | |
string | m_name |
The name of the context. More... | |
The profiling context of resource loading.
|
explicitprotected |
Constructor.
entryTimeStamp | The timestamp evaluated at entry to the scope of the resource profiling context. |
profiledResource | The profiled resource. |
|
protectedvirtual |
Gets the attributes of the context defined in the derived class.
attributes | The attributes object to fill out with the attributes of the context. |
Reimplemented from kanzi::NamedResourceProfilingContext.
|
protectedvirtual |
Gets the duration of the context.
The duration of the context is the sum of the duration of resource loading and deployment that occurred in the scope of this context and the dependency contexts.
Reimplemented from kanzi::ResourceProfilingContext.